<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	template="/WEB-INF/templates/default.xhtml">

	<ui:define name="menu">
		<ul>
			<li><h:link value="Home"  outcome="/index" /> </li>
			<li><h:link value="Users"  outcome="/content/user/list" /> </li>
			<li><h:link value="Resources"  outcome="/content/resource/list" /> </li>
		    <li><h:link value="Tasks"  outcome="/content/task/list" /> </li>			
		    <li><h:link class="akt" value="Task types"  outcome="/content/tasktype/list" /> </li> 
		</ul>
		<p class="vonal"><br/></p>
	</ui:define>

	<ui:define name="content2">
		<h:button value="Create new task type"
				class="btnCommand"
				outcome="/content/tasktype/edit" />
		<br/><br/>
		<h:form id="taskTypeListForm">
			<h:dataTable id="taskTypeTable"
				value="#{taskTypeBean.all}" var="tt"
				styleClass="taskTypeTable"
				columnClasses="taskTypeTableName"
				rowClasses="userTableOddRow, userTableEvenRow">

				<h:column headerClass="taskTypeTableHeaderName">
					<f:facet name="header">Name</f:facet>
					<h:link outcome="/content/tasktype/edit" value="#{tt.name}">
						<f:param name="id" value="#{tt.id}" />
					</h:link>
				</h:column>

			</h:dataTable>
			<br />
		</h:form>
	</ui:define>
</ui:composition>